from typing import Optional

import PySide6.QtCore
import PySide6.QtWidgets
from ...PSData import PSData, PSDataServer
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QMainWindow

from .Ui_MWBase import Ui_MWBase


class MWBase(QMainWindow, PSDataServer):
    '''
    Function:
        中间有一个 Splitter的主窗体
    '''
    def __init__(
        self, 
        parent: Optional[PySide6.QtWidgets.QWidget] = ..., 
        flags: PySide6.QtCore.Qt.WindowFlags = Qt.Widget) -> None:
        super().__init__(parent=parent, flags=flags)
        self._ui = Ui_MWBase()
        self._ui.setupUi(self)

